home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4680 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.4 KB  |  39 lines

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: using c & c++ with Solaris
  5. Date: 31 Jan 1996 17:05:35 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4eo7gv$jsi@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Jan 30, 1996 21:23:49 in article <using c & c++ with Solaris>,
  15. 'wryder@bones.wcupa.edu (William Ryder)' wrote: 
  16.  
  17.  
  18. >I'm fairly new at using unix for c programming, and though this question 
  19. >may reflect my newbie-ness, would anyone be so kind as to pardon my green 
  20. >aura(?): if C++ is a superset of "C", why does "cc" (object oriented 
  21. >compiler) choke when I sent it "C" language commands (like "printf")? 
  22. >Should not all the libraries (etc.) be there?  Or is this a system
  23. specific 
  24. >problem (ie. - "specifically MY system?") 
  25. Need to be a little more specific -- what is the error message  
  26. ("choke" leaves some to be desired in this respect). 
  27.  
  28. If you really are getting a compiler (as opposed to linker or runtime) 
  29. error, then it's a good bet that you haven't included the necessary 
  30. header files.  This problem is not so much C vs. C++ as it is K&R and 
  31. older C's vs. C++.   Anyway, if you're using printf you need to 
  32. #include <stdio.h> 
  33.  
  34. -- 
  35. Pete Grant 
  36. Kalevi, Inc. 
  37. Object Oriented Software Development
  38.